import VueRouter from 'vue-router'
//1.导入组件
//import HelloWorld from './components/HelloWorld.vue'

//路由规则配置
export default new VueRouter({
    routes:[
      {
        path:"/",
        name:"home",
        component:() =>import('./components/Home.vue') //2.使用
      },
      {
        path:"/list",
        name:"list",
        component:() => import('./components/List.vue'), //直接导入使用
      }
    ]
  });